home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Online / RFCs / rfc / rfc2312.txt < prev    next >
Encoding:
Text File  |  1998-03-20  |  38.9 KB  |  1,124 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                           S. Dusse
  8. Request for Comments: 2312                             RSA Data Security
  9. Category: Informational                                       P. Hoffman
  10.                                                 Internet Mail Consortium
  11.                                                              B. Ramsdell
  12.                                                                Worldtalk
  13.                                                             J. Weinstein
  14.                                                                 Netscape
  15.                                                               March 1998
  16.  
  17.  
  18.                  S/MIME Version 2 Certificate Handling
  19.  
  20. Status of this Memo
  21.  
  22.    This memo provides information for the Internet community.  It does
  23.    not specify an Internet standard of any kind.  Distribution of this
  24.    memo is unlimited.
  25.  
  26. Copyright Notice
  27.  
  28.    Copyright (C) The Internet Society (1998).  All Rights Reserved.
  29.  
  30. 1. Overview
  31.  
  32.    S/MIME (Secure/Multipurpose Internet Mail Extensions), described in
  33.    [SMIME-MSG], provides a method to send and receive secure MIME
  34.    messages. In order to validate the keys of a message sent to it, an
  35.    S/MIME agent needs to certify that the key is valid. This memo
  36.    describes the mechanisms S/MIME uses to create and validate keys
  37.    using certificates.
  38.  
  39.    This specification is compatible with PKCS #7 in that it uses the
  40.    data types defined by PKCS #7. It also inherits all the varieties of
  41.    architectures for certificate-based key management supported by PKCS
  42.    #7.  Note that the method S/MIME messages make certificate requests
  43.    is defined in [SMIME-MSG].
  44.  
  45.    In order to handle S/MIME certificates, an agent has to follow
  46.    specifications in this memo, as well as some of the specifications
  47.    listed in the following documents:
  48.  
  49.     - "PKCS #1: RSA Encryption", [PKCS-1].
  50.     - "PKCS #7: Cryptographic Message Syntax", [PKCS-7]
  51.     - "PKCS #10: Certification Request Syntax", [PKCS-10].
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. Dusse, et. al.               Informational                      [Page 1]
  59.  
  60. RFC 2312        S/MIME Version 2 Certificate Handling         March 1998
  61.  
  62.  
  63.    Please note: The information in this document is historical material
  64.    being published for the public record. It is not an IETF standard.
  65.    The use of the word "standard" in this document indicates a standard
  66.    for adopters of S/MIME version 2, not an IETF standard.
  67.  
  68. 1.1 Definitions
  69.  
  70.    For the purposes of this memo, the following definitions apply.
  71.  
  72.    ASN.1: Abstract Syntax Notation One, as defined in CCITT X.208.
  73.  
  74.    BER: Basic Encoding Rules for ASN.1, as defined in CCITT X.209.
  75.  
  76.    Certificate: A type that binds an entity's distinguished name to a
  77.    public key with a digital signature. This type is defined in CCITT
  78.    X.509 [X.509].  This type also contains the distinguished name of the
  79.    certificate issuer (the signer), an issuer-specific serial number,
  80.    the issuer's signature algorithm identifier, and a validity period.
  81.  
  82.    Certificate Revocation List (CRL): A type that contains information
  83.    about certificates whose validity an issuer has prematurely revoked.
  84.    The information consists of an issuer name, the time of issue, the
  85.    next scheduled time of issue, and a list of certificate serial
  86.    numbers and their associated revocation times. The CRL is signed by
  87.    the issuer. The type intended by this specification is the one
  88.    defined in [KEYM].
  89.  
  90.    DER: Distinguished Encoding Rules for ASN.1, as defined in CCITT
  91.    X.509.
  92.  
  93. 1.2 Compatibility with Prior Practice of S/MIME
  94.  
  95.    Appendix C contains important information about how S/MIME agents
  96.    following this specification should act in order to have the greatest
  97.    interoperability with earlier implementations of S/MIME.
  98.  
  99. 1.3 Terminology
  100.  
  101.    Throughout this memo, the terms MUST, MUST NOT, SHOULD, and SHOULD
  102.    NOT are used in capital letters. This conforms to the definitions in
  103.    [MUSTSHOULD].  [MUSTSHOULD] defines the use of these key words to
  104.    help make the intent of standards track documents as clear as
  105.    possible. The same key words are used in this document to help
  106.    implementors achieve interoperability.
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114. Dusse, et. al.               Informational                      [Page 2]
  115.  
  116. RFC 2312        S/MIME Version 2 Certificate Handling         March 1998
  117.  
  118.  
  119. 2. PKCS #7 Options
  120.  
  121.    The PKCS #7 message format allows for a wide variety of options in
  122.    content and algorithm support. This section puts forth a number of
  123.    support requirements and recommendations in order to achieve a base
  124.    level of interoperability among all S/MIME implementations. Most of
  125.    the PKCS #7 format for S/MIME messages is defined in [SMIME-MSG].
  126.  
  127. 2.1 CertificateRevocationLists
  128.  
  129.    Receiving agents MUST support for the Certificate Revocation List
  130.    (CRL) format defined in [KEYM]. If sending agents include CRLs in
  131.    outgoing messages, the CRL format defined in [KEYM] MUST be used.
  132.  
  133.    All agents MUST validate CRLs and check certificates against CRLs, if
  134.    available, in accordance with [KEYM]. All agents SHOULD check the
  135.    nextUpdate field in the CRL against the current time. If the current
  136.    time is later than the nextUpdate time, the action that the agent
  137.    takes is a local decision. For instance, it could warn a human user,
  138.    it could retrieve a new CRL if able, and so on.
  139.  
  140.    Receiving agents MUST recognize CRLs in received S/MIME messages.
  141.  
  142.    Clients MUST use revocation information included as a CRL in an
  143.    S/MIME message when verifying the signature and certificate path
  144.    validity in that message.  Clients SHOULD store CRLs received in
  145.    messages for use in processing later messages.
  146.  
  147.    Clients MUST handle multiple valid Certificate Authority (CA)
  148.    certificates containing the same subject name and the same public
  149.    keys but with overlapping validity intervals.
  150.  
  151. 2.2 ExtendedCertificateOrCertificate
  152.  
  153.    Receiving agents MUST support X.509 v1 and X.509 v3 certificates. See
  154.    [KEYM] for details about the profile for certificate formats. End
  155.    entity certificates MUST include an Internet mail address, as
  156.    described in section 3.1.
  157.  
  158. 2.2.1 Historical Note About PKCS #7 Certificates
  159.  
  160.    The PKCS #7 message format supports a choice of certificate two
  161.    formats for public key content types: X.509 and PKCS #6 Extended
  162.    Certificates. The PKCS #6 format is not in widespread use. In
  163.    addition, proposed revisions of X.509 certificates address much of
  164.    the same functionality and flexibility as was intended in the PKCS
  165.    #6. Thus, sending and receiving agents MUST NOT use PKCS #6 extended
  166.    certificates.
  167.  
  168.  
  169.  
  170. Dusse, et. al.               Informational                      [Page 3]
  171.  
  172. RFC 2312        S/MIME Version 2 Certificate Handling         March 1998
  173.  
  174.  
  175. 2.3 ExtendedCertificateAndCertificates
  176.  
  177.    Receiving agents MUST be able to handle an arbitrary number of
  178.    certificates of arbitrary relationship to the message sender and to
  179.    each other in arbitrary order. In many cases, the certificates
  180.    included in a signed message may represent a chain of certification
  181.    from the sender to a particular root. There may be, however,
  182.    situations where the certificates in a signed message may be
  183.    unrelated and included for convenience.
  184.  
  185.    Sending agents SHOULD include any certificates for the user's public
  186.    key(s) and associated issuer certificates. This increases the
  187.    likelihood that the intended recipient can establish trust in the
  188.    originator's public key(s).  This is especially important when
  189.    sending a message to recipients that may not have access to the
  190.    sender's public key through any other means or when sending a signed
  191.    message to a new recipient. The inclusion of certificates in outgoing
  192.    messages can be omitted if S/MIME objects are sent within a group of
  193.    correspondents that has established access to each other's
  194.    certificates by some other means such as a shared directory or manual
  195.    certificate distribution. Receiving S/MIME agents SHOULD be able to
  196.    handle messages without certificates using a database or directory
  197.    lookup scheme.
  198.  
  199.    A sending agent SHOULD include at least one chain of certificates up
  200.    to, but not including, a Certificate Authority (CA) that it believes
  201.    that the recipient may trust as authoritative. A receiving agent
  202.    SHOULD be able to handle an arbitrarily large number of certificates
  203.    and chains.
  204.  
  205.    Clients MAY send CA certificates, that is, certificates that are
  206.    self-signed and can be considered the "root" of other chains. Note
  207.    that receiving agents SHOULD NOT simply trust any self-signed
  208.    certificates as valid CAs, but SHOULD use some other mechanism to
  209.    determine if this is a CA that should be trusted.
  210.  
  211.    Receiving agents MUST support chaining based on the distinguished
  212.    name fields. Other methods of building certificate chains may be
  213.    supported but are not currently recommended.
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226. Dusse, et. al.               Informational                      [Page 4]
  227.  
  228. RFC 2312        S/MIME Version 2 Certificate Handling         March 1998
  229.  
  230.  
  231. 3. Distinguished Names in Certificates
  232.  
  233. 3.1 Using Distinguished Names for Internet Mail
  234.  
  235.    The format of an X.509 certificate includes fields for the subject
  236.    name and issuer name. The subject name identifies the owner of a
  237.    particular public key/private key pair while the issuer name is meant
  238.    to identify the entity that "certified" the subject (that is, who
  239.    signed the subject's certificate). The subject name and issuer name
  240.    are defined by X.509 as Distinguished Names.
  241.  
  242.    Distinguished Names are defined by a CCITT standard X.501 [X.501]. A
  243.    Distinguished Name is broken into one or more Relative Distinguished
  244.    Names.  Each Relative Distinguished Name is comprised of one or more
  245.    Attribute-Value Assertions. Each Attribute-Value Assertion consists
  246.    of a Attribute Identifier and its corresponding value information,
  247.    such as CountryName=US. Distinguished Names were intended to identify
  248.    entities in the X.500 directory tree [X.500]. Each Relative
  249.    Distinguished Name can be thought of as a node in the tree which is
  250.    described by some collection of Attribute-Value Assertions. The
  251.    entire Distinguished Name is some collection of nodes in the tree
  252.    that traverse a path from the root of the tree to some end node which
  253.    represents a particular entity.
  254.  
  255.    The goal of the directory was to provide an infrastructure to
  256.    uniquely name every communications entity everywhere. However,
  257.    adoption of a global X.500 directory infrastructure has been slower
  258.    than expected. Consequently, there is no requirement for X.500
  259.    directory service provision in the S/MIME environment, although such
  260.    provision would almost undoubtedly be of great value in facilitating
  261.    key management for S/MIME.
  262.  
  263.    The use of Distinguished Names in accordance with the X.500 directory
  264.    is not very widespread. By contrast, Internet mail addresses, as
  265.    described in RFC 822 [RFC-822], are used almost exclusively in the
  266.    Internet environment to identify originators and recipients of
  267.    messages. However, Internet mail addresses bear no resemblance to
  268.    X.500 Distinguished Names (except, perhaps, that they are both
  269.    hierarchical in nature). Some method is needed to map Internet mail
  270.    addresses to entities that hold public keys. Some people have
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282. Dusse, et. al.               Informational                      [Page 5]
  283.  
  284. RFC 2312        S/MIME Version 2 Certificate Handling         March 1998
  285.  
  286.  
  287.    suggested that the X.509 certificate format should be abandoned in
  288.    favor of other binding mechanisms. Instead, S/MIME keeps the X.509
  289.    certificate and Distinguished Name mechanisms while tailoring the
  290.    content of the naming information to suit the Internet mail
  291.    environment.
  292.  
  293.    End-entity certificates MUST contain an Internet mail address as
  294.    described in [RFC-822]. The address must be an "addr-spec" as defined
  295.    in Section 6.1 of that specification.
  296.  
  297.    Receiving agents MUST recognize email addresses in the subjectAltName
  298.    field. Receiving agents MUST recognize email addresses in the
  299.    Distinguished Name field.
  300.  
  301.    Sending agents SHOULD make the address in the From header in a mail
  302.    message match an Internet mail address in the signer's certificate.
  303.    Receiving agents MUST check that the address in the From header of a
  304.    mail message matches an Internet mail address in the signer's
  305.    certificate. A receiving agent MUST provide some explicit alternate
  306.    processing of the message if this comparison fails, which may be to
  307.    reject the message.
  308.  
  309. 3.2 Required Name Attributes
  310.  
  311.    Receiving agents MUST support parsing of zero, one, or more instances
  312.    of each of the following set of name attributes within the
  313.    Distinguished Names in certificates.
  314.  
  315.    Sending agents MUST include the Internet mail address during
  316.    Distinguished Name creation. Guidelines for the inclusion, omission,
  317.    and ordering of the remaining name attributes during the creation of
  318.    a distinguished name will most likely be dictated by the policies
  319.    associated with the certification service which will certify the
  320.    corresponding name and public key.
  321.  
  322.    CountryName
  323.    StateOrProvinceName
  324.    Locality
  325.    CommonName
  326.    Title
  327.    Organization
  328.    OrganizationalUnit
  329.    StreetAddress
  330.    PostalCode
  331.    PhoneNumber
  332.    EmailAddress
  333.  
  334.  
  335.  
  336.  
  337.  
  338. Dusse, et. al.               Informational                      [Page 6]
  339.  
  340. RFC 2312        S/MIME Version 2 Certificate Handling         March 1998
  341.  
  342.  
  343.    All attributes other than EmailAddress are described in X.520
  344.    [X.520].  EmailAddress is an IA5String that can have multiple
  345.    attribute values.
  346.  
  347. 4. Certificate Processing
  348.  
  349.    A receiving agent needs to provide some certificate retrieval
  350.    mechanism in order to gain access to certificates for recipients of
  351.    digital envelopes.  There are many ways to implement certificate
  352.    retrieval mechanisms. X.500 directory service is an excellent example
  353.    of a certificate retrieval-only mechanism that is compatible with
  354.    classic X.500 Distinguished Names. The PKIX Working Group is
  355.    investigating other mechanisms. Another method under consideration by
  356.    the IETF is to provide certificate retrieval services as part of the
  357.    existing Domain Name System (DNS). Until such mechanisms are widely
  358.    used, their utility may be limited by the small number of
  359.    correspondent's certificates that can be retrieved. At a minimum, for
  360.    initial S/MIME deployment, a user agent could automatically generate
  361.    a message to an intended recipient requesting that recipient's
  362.    certificate in a signed return message.
  363.  
  364.    Receiving and sending agents SHOULD also provide a mechanism to allow
  365.    a user to "store and protect" certificates for correspondents in such
  366.    a way so as to guarantee their later retrieval. In many environments,
  367.    it may be desirable to link the certificate retrieval/storage
  368.    mechanisms together in some sort of certificate database. In its
  369.    simplest form, a certificate database would be local to a particular
  370.    user and would function in a similar way as a "address book" that
  371.    stores a user's frequent correspondents. In this way, the certificate
  372.    retrieval mechanism would be limited to the certificates that a user
  373.    has stored (presumably from incoming messages).  A comprehensive
  374.    certificate retrieval/storage solution may combine two or more
  375.    mechanisms to allow the greatest flexibility and utility to the user.
  376.    For instance, a secure Internet mail agent may resort to checking a
  377.    centralized certificate retrieval mechanism for a certificate if it
  378.    can not be found in a user's local certificate storage/retrieval
  379.    database.
  380.  
  381.    Receiving and sending agents SHOULD provide a mechanism for the
  382.    import and export of certificates, using a PKCS #7 certs-only
  383.    message. This allows for import and export of full certificate chains
  384.    as opposed to just a single certificate. This is described in
  385.    [SMIME-MSG].
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394. Dusse, et. al.               Informational                      [Page 7]
  395.  
  396. RFC 2312        S/MIME Version 2 Certificate Handling         March 1998
  397.  
  398.  
  399. 4.1 Certificate Revocation Lists
  400.  
  401.    A receiving agent SHOULD have access to some certificate-revocation
  402.    list (CRL) retrieval mechanism in order to gain access to
  403.    certificate-revocation information when validating certificate
  404.    chains. A receiving or sending agent SHOULD also provide a mechanism
  405.    to allow a user to store incoming certificate-revocation information
  406.    for correspondents in such a way so as to guarantee its later
  407.    retrieval. However, it is always better to get the latest information
  408.    from the CA than to get information stored away from incoming
  409.    messages.
  410.  
  411.    Receiving and sending agents SHOULD retrieve and utilize CRL
  412.    information every time a certificate is verified as part of a
  413.    certificate chain validation even if the certificate was already
  414.    verified in the past.  However, in many instances (such as off-line
  415.    verification) access to the latest CRL information may be difficult
  416.    or impossible. The use of CRL information, therefore, may be dictated
  417.    by the value of the information that is protected. The value of the
  418.    CRL information in a particular context is beyond the scope of this
  419.    memo but may be governed by the policies associated with particular
  420.    certificate hierarchies.
  421.  
  422. 4.2 Certificate Chain Validation
  423.  
  424.    In creating a user agent for secure messaging, certificate, CRL, and
  425.    certificate chain validation SHOULD be highly automated while still
  426.    acting in the best interests of the user. Certificate, CRL, and chain
  427.    validation MUST be performed when validating a correspondent's public
  428.    key. This is necessary when a) verifying a signature from a
  429.    correspondent and, b) creating a digital envelope with the
  430.    correspondent as the intended recipient.
  431.  
  432.    Certificates and CRLs are made available to the chain validation
  433.    procedure in two ways: a) incoming messages, and b) certificate and
  434.    CRL retrieval mechanisms. Certificates and CRLs in incoming messages
  435.    are not required to be in any particular order nor are they required
  436.    to be in any way related to the sender or recipient of the message
  437.    (although in most cases they will be related to the sender). Incoming
  438.    certificates and CRLs SHOULD be cached for use in chain validation
  439.    and optionally stored for later use. This temporary certificate and
  440.    CRL cache SHOULD be used to augment any other certificate and CRL
  441.    retrieval mechanisms for chain validation on incoming signed
  442.    messages.
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450. Dusse, et. al.               Informational                      [Page 8]
  451.  
  452. RFC 2312        S/MIME Version 2 Certificate Handling         March 1998
  453.  
  454.  
  455. 4.3 Certificate and CRL Signing Algorithms
  456.  
  457.    Certificates and Certificate-Revocation Lists (CRLs) are signed by
  458.    the certificate issuer. A receiving agent MUST be capable of
  459.    verifying the signatures on certificates andCRLs made with
  460.    md5WithRSAEncryption and sha-1WithRSAEncryption signature algorithms
  461.    with key sizes from 512 bits to 2048 bits described in [SMIME-MSG]. A
  462.    receiving agent SHOULD be capable of verifying the signatures on
  463.    certificates and CRLs made with the md2WithRSAEncryption signature
  464.    algorithm with key sizes from 512 bits to 2048 bits.
  465.  
  466. 4.4 X.509 Version 3 Certificate Extensions
  467.  
  468.    The X.509 v3 standard describes an extensible framework in which the
  469.    basic certificate information can be extended and how such extensions
  470.    can be used to control the process of issuing and validating
  471.    certificates. The PKIX Working Group has ongoing efforts to identify
  472.    and create extensions which have value in particular certification
  473.    environments. As such, there is still a fair amount of profiling work
  474.    to be done before there is widespread agreement on which v3
  475.    extensions will be used. Further, there are active efforts underway
  476.    to issue X.509 v3 certificates for business purposes. This memo
  477.    identifies the minumum required set of certificate extensions which
  478.    have the greatest value in the S/MIME environment. The
  479.    basicConstraints, and keyUsage extensions are defined in [X.509].
  480.  
  481.    Sending and receiving agents MUST correctly handle the v3 Basic
  482.    Constraints Certificate Extension, the Key Usage Certificate
  483.    Extension, authorityKeyID, subjectKeyID, and the subjectAltNames when
  484.    they appear in end-user certificates. Some mechanism SHOULD exist to
  485.    handle the defined v3 certificate extensions when they appear in
  486.    intermediate or CA certificates.
  487.  
  488.    Certificates issued for the S/MIME environment SHOULD NOT contain any
  489.    critical extensions other than those listed here. These extensions
  490.    SHOULD be marked as non-critical unless the proper handling of the
  491.    extension is deemed critical to the correct interpretation of the
  492.    associated certificate. Other extensions may be included, but those
  493.    extensions SHOULD NOT be marked as critical.
  494.  
  495. 4.4.1 Basic Constraints Certificate Extension
  496.  
  497.    The basic constraints extension serves to delimit the role and
  498.    position of an issuing authority or end-user certificate plays in a
  499.    chain of certificates.
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506. Dusse, et. al.               Informational                      [Page 9]
  507.  
  508. RFC 2312        S/MIME Version 2 Certificate Handling         March 1998
  509.  
  510.  
  511.    For example, certificates issued to CAs and subordinate CAs contain a
  512.    basic constraint extension that identifies them as issuing authority
  513.    certificates. End-user subscriber certificates contain an extension
  514.    that constrains the certificate from being an issuing authority
  515.    certificate.
  516.  
  517.    Certificates SHOULD contain a basicContstraints extension.
  518.  
  519. 4.4.2 Key Usage Certificate Extension
  520.  
  521.    The key usage extension serves to limit the technical purposes for
  522.    which a public key listed in a valid certificate may be used. Issuing
  523.    authority certificates may contain a key usage extension that
  524.    restricts the key to signing certificates, certificate revocation
  525.    lists and other data.
  526.  
  527.    For example, a certification authority may create subordinate issuer
  528.    certificates which contain a keyUsage extension which specifies that
  529.    the corresponding public key can be used to sign end user certs and
  530.    sign CRLs.
  531.  
  532. 5. Generating Keys and Certification Requests
  533.  
  534. 5.1 Binding Names and Keys
  535.  
  536.    An S/MIME agent or some related administrative utility or function
  537.    MUST be capable of generating a certification request given a user's
  538.    public key and associated name information. In most cases, the user's
  539.    public key/private key pair will be generated simultaneously.
  540.    However, there are cases where the keying information may be
  541.    generated by an external process (such as when a key pair is
  542.    generated on a cryptographic token or by a "key recovery" service).
  543.  
  544.    There SHOULD NOT be multiple valid (that is, non-expired and non-
  545.    revoked) certificates for the same key pair bound to different
  546.    Distinguished Names.  Otherwise, a security flaw exists where an
  547.    attacker can substitute one valid certificate for another in such a
  548.    way that can not be detected by a message recipient. If a users
  549.    wishes to change their name (or create an alternate name), the user
  550.    agent SHOULD generate a new key pair. If the user wishes to reuse an
  551.    existing key pair with a new or alternate name, the user SHOULD first
  552.    have any valid certificates for the existing public key revoked.
  553.  
  554.    In general, it is possible for a user to request certification for
  555.    the same name and different public key from the same or different
  556.    certification authorities.  This is acceptable both for end-entity
  557.    and issuer certificates and can be useful in supporting a change of
  558.    issuer keys in a smooth fashion.
  559.  
  560.  
  561.  
  562. Dusse, et. al.               Informational                     [Page 10]
  563.  
  564. RFC 2312        S/MIME Version 2 Certificate Handling         March 1998
  565.  
  566.  
  567.    CAs that re-use their own name with distinct keys MUST include the
  568.    AuthorityKeyIdentifier extension in certificates that they issue, and
  569.    MUST have the SubjectKeyIdentifier extension in their own
  570.    certificate. CAs SHOULD use these extensions uniformly.
  571.  
  572.    Clients SHOULD handle multiple valid CA certificates that certify
  573.    different public keys but contain the same subject name (in this
  574.    case, that CA's name).
  575.  
  576.    When selecting an appropriate issuer's certificate to use to verify a
  577.    given certificate, clients SHOULD process the AuthorityKeyIdentifier
  578.    and SubjectKeyIdentifier extensions.
  579.  
  580.    5.2 Using PKCS #10 for Certification Requests
  581.  
  582.    PKCS #10 is a flexible and extensible message format for representing
  583.    the results of cryptographic operations on some data. The choice of
  584.    naming information is largely dictated by the policies and procedures
  585.    associated with the intended certification service.
  586.  
  587.    In addition to key and naming information, the PKCS #10 format
  588.    supports the inclusion of optional attributes, signed by the entity
  589.    requesting certification. This allows for information to be conveyed
  590.    in a certification request which may be useful to the request
  591.    process, but not necessarily part of the Distinguished Name being
  592.    certified.
  593.  
  594.    Receiving agents MUST support the identification of an RSA key with
  595.    the rsa defined in X.509 and the rsaEncryption OID. Certification
  596.    authorities MUST support sha-1WithRSAEncryption and
  597.    md5WithRSAEncryption and SHOULD support MD2WithRSAEncryption for
  598.    verification of signatures on certificate requests as described in
  599.    [SMIME-MSG].
  600.  
  601.    For the creation and submission of certification-requests, RSA keys
  602.    SHOULD be identified with the rsaEncryption OID and signed with the
  603.    sha-1WithRSAEncryption signature algorithm.  Certification-requests
  604.    MUST NOT be signed with the md2WithRSAEncryption signature algorithm.
  605.  
  606.    Certification requests MUST include a valid Internet mail address,
  607.    either as part of the certificate (as described in 3.2) or as part of
  608.    the PKCS #10 attribute list. Certification authorities MUST check
  609.    that the address in the "From:" header matches either of these
  610.    addresses. CAs SHOULD allow the CA operator to configure processing
  611.    of messages whose addresses do not match.
  612.  
  613.  
  614.  
  615.  
  616.  
  617.  
  618. Dusse, et. al.               Informational                     [Page 11]
  619.  
  620. RFC 2312        S/MIME Version 2 Certificate Handling         March 1998
  621.  
  622.  
  623.    Certification authorities SHOULD support parsing of zero or one
  624.    instance of each of the following set of certification-request
  625.    attributes on incoming messages. Attributes that a particular
  626.    implementation does not support may generate a warning message to the
  627.    requestor, or may be silently ignored.  Inclusion of the following
  628.    attributes during the creation and submission of a certification-
  629.    request will most likely be dictated by the policies associated with
  630.    the certification service which will certify the corresponding name
  631.    and public key.
  632.  
  633.    postalAddress
  634.    challengePassword
  635.    unstructuredAddress
  636.  
  637.    postalAddress is described in [X.520].
  638.  
  639. 5.2.1 Challenge Password
  640.  
  641.    The challenge-password attribute type specifies a password by which
  642.    an entity may request certificate revocation. The interpretation of
  643.    the password is intended to be specified by the issuer of the
  644.    certificate; no particular interpretation is required. The
  645.    challenge-password attribute type is intended for PKCS #10
  646.    certification requests.
  647.  
  648. Challenge-password attribute values have ASN.1 type ChallengePassword:
  649.  
  650. ChallengePassword ::= CHOICE {
  651.   PrintableString, T61String }
  652.  
  653. A challenge-password attribute must have a single attribute value.
  654.  
  655. It is expected that if UCS becomes an ASN.1 type
  656. (e.g., UNIVERSAL STRING),
  657. ChallengePassword will become a CHOICE type:
  658.  
  659. ChallengePassword ::= CHOICE {
  660.     PrintableString, T61String, UNIVERSAL STRING }
  661.  
  662. 5.2.2 Unstructured Address
  663.  
  664.    The unstructured-address attribute type specifies the address or
  665.    addresses of the subject of a certificate as an unstructured ASCII or
  666.    T.61 string.  The interpretation of the addresses is intended to be
  667.    specified by the issuer of the certificate; no particular
  668.    interpretation is required. A likely interpretation is as an
  669.    alternative to the X.520 postalAddress attribute type. The
  670.    unstructured-address attribute type is intended for PKCS #10
  671.  
  672.  
  673.  
  674. Dusse, et. al.               Informational                     [Page 12]
  675.  
  676. RFC 2312        S/MIME Version 2 Certificate Handling         March 1998
  677.  
  678.  
  679.    certification requests.
  680.  
  681.    Unstructured-address attribute values have
  682.    ASN.1 type UnstructuredAddress:
  683.  
  684.    UnstructuredAddress ::= CHOICE {
  685.      PrintableString, T61String }
  686.  
  687.    An unstructured-address attribute can have multiple attribute values.
  688.  
  689.    Note: T.61's newline character (hexadecimal code 0d) is recommended
  690.    as a line separator in multi-line addresses.
  691.  
  692.    It is expected that if UCS becomes an ASN.1 type (e.g., UNIVERSAL
  693.    STRING), UnstructuredAddress will become a CHOICE type:
  694.  
  695.    UnstructuredAddress ::= CHOICE {
  696.        PrintableString, T61String, UNIVERSAL STRING }
  697.  
  698. 5.3 Fulfilling a Certification Request
  699.  
  700.    Certification authorities SHOULD use the sha-1WithRSAEncryption
  701.    signature algorithms when signing certificates.
  702.  
  703. 5.4 Using PKCS #7 for Fulfilled Certificate Response
  704.  
  705.    [PKCS-7] supports a degenerate case of the SignedData content type
  706.    where there are no signers on the content (and hence, the content
  707.    value is "irrelevant"). This degenerate case is used to convey
  708.    certificate and CRL information. Certification authorities MUST use
  709.    this format for returning certificate information resulting from the
  710.    successful fulfillment of a certification request. At a minimum, the
  711.    fulfilled certificate response MUST include the actual subject
  712.    certificate (corresponding to the information in the certification
  713.    request). The response SHOULD include other certificates which link
  714.    the issuer to higher level certification authorities and
  715.    corresponding certificate-revocation lists. Unrelated certificates
  716.    and revocation information is also acceptable.
  717.  
  718.    Receiving agents MUST parse this degenerate PKCS #7 message type and
  719.    handle the certificates and CRLs according to the requirements and
  720.    recommendations in Section 4.
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730. Dusse, et. al.               Informational                     [Page 13]
  731.  
  732. RFC 2312        S/MIME Version 2 Certificate Handling         March 1998
  733.  
  734.  
  735. 6. Security Considerations
  736.  
  737.    All of the security issues faced by any cryptographic application
  738.    must be faced by a S/MIME agent. Among these issues are protecting
  739.    the user's private key, preventing various attacks, and helping the
  740.    user avoid mistakes such as inadvertently encrypting a message for
  741.    the wrong recipient. The entire list of security considerations is
  742.    beyond the scope of this document, but some significant concerns are
  743.    listed here.
  744.  
  745.    When processing certificates, there are many situations where the
  746.    processing might fail. Because the processing may be done by a user
  747.    agent, a security gateway, or other program, there is no single way
  748.    to handle such failures. Just because the methods to handle the
  749.    failures has not been listed, however, the reader should not assume
  750.    that they are not important.  The opposite is true: if a certificate
  751.    is not provably valid and associated with the message, the processing
  752.    software should take immediate and noticable steps to inform the end
  753.    user about it.
  754.  
  755.    Some of the many places where signature and certificate checking
  756.    might fail include:
  757.  
  758.    - no Internet mail addresses in a certificate match the sender of a
  759.      message
  760.    - no certificate chain leads to a trusted CA
  761.    - no ability to check the CRL for a certificate
  762.    - an invalid CRL was received
  763.    - the CRL being checked is expired
  764.    - the certificate is expired
  765.    - the certificate has been revoked
  766.  
  767.    There are certainly other instances where a certificate may be
  768.    invalid, and it is the responsibility of the processing software to
  769.    check them all thoroughly, and to decide what to do if the check
  770.    fails.
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786. Dusse, et. al.               Informational                     [Page 14]
  787.  
  788. RFC 2312        S/MIME Version 2 Certificate Handling         March 1998
  789.  
  790.  
  791. A. Object Identifiers and Syntax
  792.  
  793.    Sections A.1 through A.4 are adopted from [SMIME-MSG].
  794.  
  795. A.5 Name Attributes
  796.  
  797. emailAddress OBJECT IDENTIFIER ::=
  798.  
  799.      {iso(1) member-body(2) US(840) rsadsi(113549) pkcs(1) pkcs-9(9) 1}
  800.  
  801. CountryName OBJECT IDENTIFIER ::=
  802.      {joint-iso-ccitt(2) ds(5) attributeType(4) 6}
  803.  
  804. StateOrProvinceName OBJECT IDENTIFIER ::=
  805.      {joint-iso-ccitt(2) ds(5) attributeType(4) 8}
  806.  
  807. locality OBJECT IDENTIFIER ::=
  808.      {joint-iso-ccitt(2) ds(5) attributeType(4) 7}
  809.  
  810. CommonName OBJECT IDENTIFIER ::=
  811.      {joint-iso-ccitt(2) ds(5) attributeType(4) 3}
  812.  
  813. Title OBJECT IDENTIFIER ::=
  814.      {joint-iso-ccitt(2) ds(5) attributeType(4) 12}
  815.  
  816. Organization OBJECT IDENTIFIER ::=
  817.      {joint-iso-ccitt(2) ds(5) attributeType(4) 10}
  818.  
  819. OrganizationalUnit OBJECT IDENTIFIER ::=
  820.      {joint-iso-ccitt(2) ds(5) attributeType(4) 11}
  821.  
  822. StreetAddress OBJECT IDENTIFIER ::=
  823.      {joint-iso-ccitt(2) ds(5) attributeType(4) 9}
  824.  
  825. Postal Code OBJECT IDENTIFIER ::=
  826.      {joint-iso-ccitt(2) ds(5) attributeType(4) 17}
  827.  
  828. Phone Number OBJECT IDENTIFIER ::=
  829.      {joint-iso-ccitt(2) ds(5) attributeType(4) 20}
  830.  
  831. A.6 Certification Request Attributes
  832.  
  833. postalAddress OBJECT IDENTIFIER ::=
  834.      {joint-iso-ccitt(2) ds(5) attributeType(4) 16}
  835.  
  836. challengePassword OBJECT IDENTIFIER ::=
  837.      {iso(1) member-body(2) US(840) rsadsi(113549) pkcs(1) pkcs-9(9) 7}
  838.  
  839.  
  840.  
  841.  
  842. Dusse, et. al.               Informational                     [Page 15]
  843.  
  844. RFC 2312        S/MIME Version 2 Certificate Handling         March 1998
  845.  
  846.  
  847. unstructuredAddress OBJECT IDENTIFIER ::=
  848.      {iso(1) member-body(2) US(840) rsadsi(113549) pkcs(1) pkcs-9(9) 8}
  849.  
  850. A.7 X.509 V3 Certificate Extensions
  851.  
  852. basicConstraints OBJECT IDENTIFIER ::=
  853.  
  854.      {joint-iso-ccitt(2) ds(5) 29 19 }
  855.  
  856. The ASN.1 definition of basicConstraints certificate extension is:
  857.  
  858. basicConstraints basicConstraints EXTENSION ::= {
  859.      SYNTAX  BasicConstraintsSyntax
  860.      IDENTIFIED BY { id-ce 19 } }
  861.  
  862. BasicConstraintsSyntax ::= SEQUENCE {
  863.      cA                 BOOLEAN DEFAULT FALSE,
  864.      pathLenConstraint  INTEGER (0..MAX) OPTIONAL }
  865.  
  866. keyUsage OBJECT IDENTIFIER ::=
  867.      {joint-iso-ccitt(2) ds(5) 29 15 }
  868.  
  869. The ASN.1 definition of keyUsage certificate extension is:
  870.  
  871. keyUsage EXTENSION ::= {
  872.      SYNTAX  KeyUsage
  873.      IDENTIFIED BY { id-ce 15 }}
  874.  
  875. KeyUsage ::= BIT STRING {
  876.      digitalSignature      (0),
  877.      nonRepudiation        (1),
  878.      keyEncipherment       (2),
  879.      dataEncipherment      (3),
  880.      keyAgreement          (4),
  881.      keyCertSign           (5),
  882.      cRLSign               (6)}
  883.  
  884.  
  885.  
  886.  
  887.  
  888.  
  889.  
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898. Dusse, et. al.               Informational                     [Page 16]
  899.  
  900. RFC 2312        S/MIME Version 2 Certificate Handling         March 1998
  901.  
  902.  
  903. B. References
  904.  
  905.    [KEYM] PKIX Part 1. At the time of this writing, PKIX is a Work in
  906.    Progress, but it is expected that there will be standards-track RFCs
  907.    at some point in the future.
  908.  
  909.    [MUSTSHOULD] Bradner, S., "Key words for use in RFCs to Indicate
  910.    Requirement Levels", BCP 1l4, RFC 2119, March 1997.
  911.  
  912.    [PKCS-1] Kaliski, B., "PKCS #1: RSA Encryption Version 1.5", RFC
  913.    2313, March 1998.
  914.  
  915.    [PKCS-7] Kaliski, B., "PKCS #7: Cryptographic Message Syntax Version
  916.    1.5", RFC 2315, March 1998.
  917.  
  918.    [PKCS-10] Kaliski, B., "PKCS #10: Certification Request Syntax
  919.    Version 1.5", RFC 2314, March 1998.
  920.  
  921.    [RFC-822] Crocker, D., "Standard For The Format Of ARPA Internet Text
  922.    Messages", STD 11, RFC 822, August 1982.
  923.  
  924.    [SMIME-MSG] Dusse, S., Hoffman, P., Ramsdell, R., Lundblade, L., and
  925.    L. Repka, "S/MIME Version 2 Message Specification", RFC 2311, March
  926.    1998.
  927.  
  928.    [X.500] ITU-T Recommendation X.500 (1997) | ISO/IEC 9594-1:1997,
  929.    Information technology - Open Systems Interconnection - The
  930.    Directory: Overview of concepts, models and services
  931.  
  932.    [X.501] ITU-T Recommendation X.501 (1997) | ISO/IEC 9594-2:1997,
  933.    Information technology - Open Systems Interconnection - The
  934.    Directory: Models
  935.  
  936.    [X.509] ITU-T Recommendation X.509 (1997) | ISO/IEC 9594-8:1997,
  937.    Information technology - Open Systems Interconnection - The
  938.    Directory: Authentication framework
  939.  
  940.    [X.520] ITU-T Recommendation X.520 (1997) | ISO/IEC 9594-6:1997,
  941.    Information technology - Open Systems Interconnection - The
  942.    Directory: Selected attribute types.
  943.  
  944.  
  945.  
  946.  
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954. Dusse, et. al.               Informational                     [Page 17]
  955.  
  956. RFC 2312        S/MIME Version 2 Certificate Handling         March 1998
  957.  
  958.  
  959. C. Compatibility with Prior Practice in S/MIME
  960.  
  961.    S/MIME was originally developed by RSA Data Security, Inc. Many
  962.    developers implemented S/MIME agents before this document was
  963.    published. All S/MIME receiving agents SHOULD make every attempt to
  964.    interoperate with these earlier implementations of S/MIME.
  965.  
  966. D. Acknowledgements
  967.  
  968.    Significant contributions to the content of this memo were made by
  969.    many people, including David Solo, Anil Gangolli, Jeff Thompson, and
  970.    Lisa Repka.
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.  
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010. Dusse, et. al.               Informational                     [Page 18]
  1011.  
  1012. RFC 2312        S/MIME Version 2 Certificate Handling         March 1998
  1013.  
  1014.  
  1015. E. Authors' Addresses
  1016.  
  1017.    Steve Dusse
  1018.    RSA Data Security, Inc.
  1019.    100 Marine Parkway, #500
  1020.    Redwood City, CA  94065  USA
  1021.  
  1022.    Phone: (415) 595-8782
  1023.    EMail: spock@rsa.com
  1024.  
  1025.  
  1026.    Paul Hoffman
  1027.    Internet Mail Consortium
  1028.    127 Segre Place
  1029.    Santa Cruz, CA  95060
  1030.  
  1031.    Phone: (408) 426-9827
  1032.    EMail: phoffman@imc.org
  1033.  
  1034.  
  1035.    Blake Ramsdell
  1036.    Worldtalk
  1037.    13122 NE 20th St., Suite C
  1038.    Bellevue, WA 98005
  1039.  
  1040.    Phone: (425) 882-8861
  1041.    EMail: blaker@deming.com
  1042.  
  1043.  
  1044.    Jeff Weinstein
  1045.    Netscape Communications Corporation
  1046.    501 East Middlefield Road
  1047.    Mountain View, CA  94043
  1048.  
  1049.    Phone: (415) 254-1900
  1050.    EMail: jsw@netscape.com
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066. Dusse, et. al.               Informational                     [Page 19]
  1067.  
  1068. RFC 2312        S/MIME Version 2 Certificate Handling         March 1998
  1069.  
  1070.  
  1071. F.  Full Copyright Statement
  1072.  
  1073.    Copyright (C) The Internet Society (1998).  All Rights Reserved.
  1074.  
  1075.    This document and translations of it may be copied and furnished to
  1076.    others, and derivative works that comment on or otherwise explain it
  1077.    or assist in its implementation may be prepared, copied, published
  1078.    and distributed, in whole or in part, without restriction of any
  1079.    kind, provided that the above copyright notice and this paragraph are
  1080.    included on all such copies and derivative works.  However, this
  1081.    document itself may not be modified in any way, such as by removing
  1082.    the copyright notice or references to the Internet Society or other
  1083.    Internet organizations, except as needed for the purpose of
  1084.    developing Internet standards in which case the procedures for
  1085.    copyrights defined in the Internet Standards process must be
  1086.    followed, or as required to translate it into languages other than
  1087.    English.
  1088.  
  1089.    The limited permissions granted above are perpetual and will not be
  1090.    revoked by the Internet Society or its successors or assigns.
  1091.  
  1092.    This document and the information contained herein is provided on an
  1093.    "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
  1094.    TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
  1095.    BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
  1096.    HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
  1097.    MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122. Dusse, et. al.               Informational                     [Page 20]
  1123.  
  1124.